package com.sochinchou.res.components;

import android.os.AsyncTask;
import android.util.Log;



public class MyTask extends AsyncTask<Integer, String, Double> {

	private static final String TAG = "=== MyTask ===";

	@Override
	protected void onPreExecute() {
		Log.i(TAG, "onPreExecute() >>>");
		super.onPreExecute();
		
	}

	@Override
	protected Double doInBackground(Integer... params) {
		Log.i(TAG, "doInBackground() >>>");
		publishProgress("progress1", "progress2");
		return null;
		
	}


	@Override
	protected void onPostExecute(Double result) {
		Log.i(TAG, "onPostExecute() >>>");
		super.onPostExecute(result);

	}

	@Override
	protected void onProgressUpdate(String... values) {
		Log.i(TAG, "onProgressUpdate() >>>");
		super.onProgressUpdate(values);
		
	}

	@Override
	protected void onCancelled() {
		Log.i(TAG, "onCancelled() >>>");
		super.onCancelled();
		
	}
}
